.class public Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;
.super Ljava/lang/Object;
.source "BarUpdater.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;
    }
.end annotation


# instance fields
.field private handler:Landroid/os/Handler;

.field private runnable:Ljava/lang/Runnable;

.field runnableTimeListener:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;

.field private running:Z

.field private startTime:J

.field private timerStarted:Z


# direct methods
.method public constructor <init>(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;)V
    .locals 1

    .line 37
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 64
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$1;-><init>(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->runnable:Ljava/lang/Runnable;

    .line 38
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->handler:Landroid/os/Handler;

    .line 39
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->runnableTimeListener:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater$RunnableTimeListener;

    const/4 p1, 0x0

    .line 40
    iput-boolean p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->running:Z

    .line 41
    iput-boolean p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->timerStarted:Z

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)Z
    .locals 0

    .line 12
    iget-boolean p0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->running:Z

    return p0
.end method

.method static synthetic access$100(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)Z
    .locals 0

    .line 12
    iget-boolean p0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->timerStarted:Z

    return p0
.end method

.method static synthetic access$200(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)J
    .locals 2

    .line 12
    iget-wide v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->startTime:J

    return-wide v0
.end method

.method static synthetic access$300(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)Ljava/lang/Runnable;
    .locals 0

    .line 12
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->runnable:Ljava/lang/Runnable;

    return-object p0
.end method

.method static synthetic access$400(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;)Landroid/os/Handler;
    .locals 0

    .line 12
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->handler:Landroid/os/Handler;

    return-object p0
.end method


# virtual methods
.method public run()V
    .locals 4

    const/4 v0, 0x1

    .line 45
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->running:Z

    .line 47
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->handler:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->runnable:Ljava/lang/Runnable;

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method public startTimer()V
    .locals 2

    .line 51
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->startTime:J

    const/4 v0, 0x1

    .line 52
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->timerStarted:Z

    return-void
.end method

.method public stop()V
    .locals 1

    const/4 v0, 0x0

    .line 57
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BarUpdater;->running:Z

    return-void
.end method
